package org.sn.jdish.interview.dmall.payment.util;

import org.sn.jdish.interview.dmall.payment.IpaymentStrategy;

public class PaymentStrategyContext {

	private IpaymentStrategy ipaymentStrategy;

	public boolean exePay(int userId, int fee) {
		return ipaymentStrategy.pay(userId, fee);
	}

	public IpaymentStrategy getIpaymentStrategy() {
		return ipaymentStrategy;
	}

	public void setIpaymentStrategy(IpaymentStrategy ipaymentStrategy) {
		this.ipaymentStrategy = ipaymentStrategy;
	}

}
